#include "Si.h"


Si::Si(const double& val){
	Assign(val);
}

void Si::Assign(const double& val){
	if(val < 0)
		throw MINUS;
	else
		value = val;
}

std::istream& operator>>(std::istream& is, Si& rhs){
	double temp;
	is >> temp;
	rhs.Assign(temp);
	return is;
}

std::ostream& operator<<(std::ostream& os, const Si& rhs){
	os << rhs.value;
	return os;
}
